package com.ll.gulimall.serach.vo;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @author 21243
 * 封装页面所有可能传过来的检索条件
 * catalog3Id=1&keyword=小米&sort=saleCount_asc/desc&hasStock=0/1
 */


@Data
public class SearchParam {

    /*页面传递过来的全文匹配关键字
     */
    private String keyword;

    /*
    三级分类Id
     */
    private Long catalog3Id;

    /**
     * sort=saleCount_asc/desc
     * sort=skuPrice_asc/desc
     * sort=hasStock_asc/desc
     * sort=
     */
    private String sort;
    /**
     * 是否有货 1(You) 0(No)
     */
    private Integer hasSotck;

    /**
     * 价格区间
     */
    private String skuPrice;

    /**
     * 品牌Id 可以多选
     */
    private List<Long> brandId;

    /**
     * 按照属性进行筛选
     */
    private List<String> attrs;

    /**
     * 分页
     */
    private Integer pageNum = 1;

    /**
     * 请求字符串
     */
    private String queryString;


}

